package com.woniu.petkonwledge.mapper;

import com.woniu.common.entity.DogKonwledge;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DogKnowledgeMapper {
    //添加宠物知识文章
    @Insert("insert into dog_knowledge values(null,#{title},#{content},now())")
    void insertdogknowledge (DogKonwledge dogKonwledge);
    //    //修改宠物知识文章
//    @Update("update dog_knowledge set immune_num=#{immune_num},type=#{type},vaccine_number=#{vaccine_number},immune_date=#{immune_date},immune_info=#{immune_info},precent_photo=#{precent_photo} where oid=#{oid}")
//    void updateimmuneRegister(ImmuneRegister immuneRegister);
    //查看全部宠物知识文章
    @Select("select * from dog_knowledge ")
    List<DogKonwledge> selectdogknowledgeAll();
}
